
from  rest_framework.serializers import ModelSerializer

from . models import Snippet,Menu

class SnippetSerializer(ModelSerializer):
    class Meta:
        model = Snippet
        fields = ['id', 'title', 'code', 'linenos', 'language', 'style']


class MenuSerializer(ModelSerializer):
    class Meta:
        model = Menu
        fields = '__all__'

